package com.charlotte.study.gupao.decorator.battercake.v2;

/**
 * @author junjie.ding
 * @date 2020/3/9
 */
public abstract class Decorator extends BatterCake {

    protected BatterCake batterCake;

    public Decorator(BatterCake batterCake) {
        this.batterCake = batterCake;
    }

    @Override
    public String getMsg() {
        return batterCake.getMsg();
    }

    @Override
    public int getPrice() {
        return batterCake.getPrice();
    }
}
